// import '../app/quadcoptershared:quadcopter.dart';
import 'dart:json' as json;



// All my test code there may be a better way 
void playWithDart() {
  // does uuid work well
  String ux = UUIDX.v4();
  
  // test json parse
  String s = '{ "x":10,"y":20}';
  Map px = json.parse(s);
  Point jp = new Point.fromJson(px);

  
  // look at time
  DateTime now = new DateTime.now();
  
  // make a few copters 
  QuadCopter joe = new QuadCopter("joe" );
  QuadCopter steve = new QuadCopter("steve" );
  
  
  // make json
  String joeJson = json.stringify(joe);
   
  // parse to a map
   Map jopMap = json.parse(joeJson);
   QuadCopter joe2 = new QuadCopter.fromJson(jopMap);
   
   // so is json version the same
   bool isEqual = joe.isEquivalent(joe2);
   
   
   String steveJson = json.stringify(steve);
   Map steveMap  = json.parse(steveJson);
   QuadCopter steve2 = new QuadCopter.fromJson(steveMap);
   
   
   // so is json version the same
  isEqual = steve.isEquivalent(steve2);
   
}